package UnitTest;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Test;

import Cani.CautareInAdancimeLimitata;
import Cani.Nod;
import Joc.Joc;

public class InAdancimeLimitataCani {

	@Test
	public void testForMethodAdaugareInitializare() {
		Joc j = Joc.getJocinstance();
		ArrayList<String> initialvalue = new ArrayList<String>();
		initialvalue.add("3");
		initialvalue.add("4");
		j.setInitialvalue(initialvalue);

		CautareInAdancimeLimitata adancimeCani = new CautareInAdancimeLimitata();
		Nod n = new Nod(5, 0);

		adancimeCani.Initializare(n);
		// check if the stack have 5.0
		assertEquals(1, adancimeCani.getNod_solutie().size());
		assertEquals(5, adancimeCani.getNod_solutie().get(0).getX());
		assertEquals(0, adancimeCani.getNod_solutie().get(0).getY());
	}

}
